package cn.ssm.petadopt.codeMsg;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @Autheor: Sun俊仪
 * @Date: 2022 2022/12/17 18:36
 * @Name: PetSystem
 */

@AllArgsConstructor
public enum CodeMsg {

    JUDGEUSERNAME_SUCCESS("该用户名可用",200),
    JUDGEUSERNAME_FAILED("该用户名不可用",500),
    JUDGEPWD_SUCCESS("两次密码相同",200),
    JUDGEPWD_FAILED("两次输入密码不同",500),
    REGISTER_SUCCESS("注册成功",200),
    REGISTER_FAILED("注册失败",500),
    CODE_FAILED("验证码输入有误",500),
    USERNAME_FAILED("用户名不存在",500),
    PASSWORD_FAILED("密码错误",500),
    LOGIN_SUCCESS("登录成功",200),
    SELECTPAGE_SUCCESS("查询数据成功",0),
    SELECTPAGE_FAILED("查询数据失败",500),
    UPDATEA_SUCCESS("修改资料成功",200),
    UPDATEA_FAILED("修改资料失败",500),
    OLDPWDSETTING_FAILED("旧密码输入错误",500);



    private String msg;
    private Integer code;


    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
